/* 科技分类页面样式 */

/* 统一顶部样式 */
#Header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: rgba(255,255,255,1);
    border-style: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

#Header .tx-c {
    text-align: center !important;
}

#Header h1 {
    text-align: center !important;
}

#ScrollContent {
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
    padding: 4.5em 0 0 0;
}

/* 分类列表 */
.category-list {
    padding: 1em 0.5em;
}

.category-item {
    background: #fff;
    margin-bottom: 0.5em;
    border-radius: 12px;
    padding: 1em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.category-item:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.category-active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.category-active .t-gra {
    color: rgba(255,255,255,0.8) !important;
}

.category-icon {
    width: 3.5em;
    height: 3.5em;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    margin-right: 1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.category-icon svg {
    width: 2em;
    height: 2em;
    fill: currentColor;
}

.category-item:hover .category-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.category-active .category-icon {
    background: rgba(255,255,255,0.2);
}

/* 热门推荐区域 */
.hot-section {
    background: #fff;
    margin: 0.5em;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.section-header {
    padding: 1em;
    border-bottom: 1px solid #f0f0f0;
}

.t-red {
    color: #ff6b6b;
}

.hot-news-item {
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hot-news-item:hover {
    background: #f8f9fa;
}

.hot-news-item:active {
    background: #e9ecef;
}

.hot-rank {
    width: 2em;
    height: 2em;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: #fff;
    text-align: center;
    line-height: 2em;
    font-weight: bold;
    font-size: 0.9em;
}

.news-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 0.2em 0.5em;
    border-radius: 8px;
    font-size: 0.8em;
    display: inline-block;
}

/* 通用样式 */
.umar-t {
    margin-top: 1em;
}

.umar-l {
    margin-left: 1em;
}

.umar-l-s {
    margin-left: 0.5em;
}

.umar-t-xs {
    margin-top: 0.3em;
}

.uinn {
    padding: 1em;
}

.uinn-lr {
    padding: 0 1em;
}

.ulh-1 {
    line-height: 1.5em;
}

.t-gra {
    color: #6c757d;
}

.ulev-1 {
    font-weight: 500;
    font-size: 1em;
}

.ulev--1 {
    font-size: 0.9em;
}

.ubb {
    border-bottom: 1px solid #e9ecef;
}

/* 分类新闻区域 */
.news-section {
    background: #fff;
    margin: 0.5em;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.category-news-item {
    padding: 1em;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.category-news-item:last-child {
    border-bottom: none;
}

.category-news-item:hover {
    background: #f8f9fa;
}

.category-news-item:active {
    background: #e9ecef;
}

.news-icon {
    width: 3.5em;
    height: 3.5em;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 1em;
    flex-shrink: 0;
}

.news-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-title {
    font-size: 1em;
    line-height: 1.4;
    margin-bottom: 0.3em;
    color: #333;
    font-weight: 500;
}

.news-desc {
    font-size: 0.85em;
    line-height: 1.3;
    color: #6c757d;
    margin-bottom: 0.3em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    font-size: 0.75em;
    color: #888;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.btn-all {
    padding: 0.3em 0.8em;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-all:hover {
    background: rgba(102, 126, 234, 0.2);
}

.t-blu {
    color: #667eea;
}

.no-news {
    text-align: center;
    color: #888;
    padding: 2em 1em;
    font-size: 0.9em;
} 